package day10.task;

public class Commodity {
    private int ID;
    private String name;
    private double price;

    public Commodity() {
    }

    public Commodity(int ID, String name, double price) {
        this.ID = ID;
        this.name = name;
        this.price = price;
    }

    /**
     * 获取
     * @return ID
     */
    public int getID() {
        return ID;
    }

    /**
     * 设置
     * @param ID
     */
    public void setID(int ID) {
        this.ID = ID;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    public String toString() {
        return "Commodity{ID = " + ID + ", name = " + name + ", price = " + price + "}";
    }
}
class Main{
    public static void main(String[] args) {
        System.out.println("*****欢迎来到商品批发城*****");
//        System.out.printf();
    }
}

